package com.bxl;

public class UpdateNewsImpl implements UpdateNews {
    @Override
    public int updateById(int id, String name) {
        int rows=0;
        try{
            String sql="UPDATE `news_category` SET `name`=? WHERE `id`=?";
            Object[] obj ={name,id};
          //  rows=BaseDao.updateObj(sql,obj);
        }catch (Exception e){
            e.printStackTrace();
        }

        return rows;
    }
}
